package cn.fzkj.project.user.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Date;

/** 用户表 */
@TableName(value = "fzkj_user")
public class User {

//    @JsonIgnore
    @TableId(type = IdType.AUTO)
    private Long userId;
    @TableField(value = "user_real_name")
    private String realName;
    @TableField(value = "user_nick_name")
    private String nickName;
    @JsonIgnore
    @TableField(value = "user_password")
    private String password;
    /** 用户身份，管理员、普通 */
    @TableField(value = "user_type")
    private Integer userType;
    /** 用户账户状态 默认 1 ： 可用  0：不可用*/
    @TableField(value = "avaliable")
    private Integer avaliable;
    /** 创建时间. */
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;
    /** 更新时间. */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
    /** 乐观锁. */
    @Version
    @JsonIgnore
    @TableField(select = false) // 查询时不显示此字段
    private Integer version;
    @TableLogic
    @JsonIgnore
    @TableField(select = false) // 查询时不显示此字段
    private Integer deleted; // 逻辑删除

    public Integer getAvaliable() {
        return avaliable;
    }

    public void setAvaliable(Integer avaliable) {
        this.avaliable = avaliable;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}
